package com.newopenlab.hmc.biz;

public class Test1 {
	public static void main(String[] ar){
		Hand h1,h2;
		HandEvaluator he1,he2;
		int vh1,vh2;
		
		h1=new Hand("Ah 2s 3h 4s 5h");
		h2=new Hand("2s 3h 4s 5h 6h");
		he1=new HandEvaluator(h1);
		he2=new HandEvaluator(h2);
		
		vh1=he1.getValue();
		vh2=he2.getValue();
		System.out.println(vh1+" "+he1.getType()+" "+vh2+" "+he2.getType());
		
		h1=new Hand("Ah 2s Ad 4h");
		h2=new Hand("Ah 2s Ad 4h 6h");
		he1=new HandEvaluator(h1);
		he2=new HandEvaluator(h2);
		
		vh1=he1.getValue();
		vh2=he2.getValue();
		System.out.println(vh1+" "+he1.getType()+" "+vh2+" "+he2.getType());
		
		h1=new Hand("Ah 2h 3h 4h 5h Kd");
		h2=new Hand("As 2s 3s 4s 5s");
		he1=new HandEvaluator(h1);
		he2=new HandEvaluator(h2);
		
		vh1=he1.getValue();
		vh2=he2.getValue();
		System.out.println(vh1+" "+he1.getType()+" "+vh2+" "+he2.getType());
		
		h1=new Hand("Ah 2h 3h 4h 5h Kd");
		h2=new Hand("Ad 2s 3s 4s 5s 6s");
		he1=new HandEvaluator(h1);
		he2=new HandEvaluator(h2);
		
		vh1=he1.getValue();
		vh2=he2.getValue();
		System.out.println(vh1+" "+he1.getType()+" "+vh2+" "+he2.getType());
		
		
		
		
		
	}
}
